Actually, only one of these companies has had its CEO personally attacked by the president.
Now Amazon has a strong financial incentive to go to court in this case as winning can lead to potentially securing a 10b$ contract. Whereas losing costs maybe some millions?
Both Bezos and Trump are very pragmatic business men. I think this is all just about money.