A US federal judge has ruled that Twitter, now known as X, violated contracts by failing to pay millions of dollars in bonuses that the …