Amazon.com Inc. won a preliminary order Thursday blocking the U.S. Department of Defense from moving forward with a $10 billion cloud-computing contract with rival Microsoft Corp., in a suit that confronts President Donald Trump’s public animus toward Amazon and its chief executive Jeff Bezos.

Amazon sued the Defense Department last year in the U.S. Court of Federal Claims in Washington, a specialized court that hears government contract cases and other claims seeking monetary damages against the United States. Amazon was among the unsuccessful bidders for the Pentagon’s Joint Enterprise Defense Infrastructure, or JEDI, contract.