WASHINGTON—A judge on Friday dismissed Amazon.com‘s legal challenge to the Defense Department’s 2019 decision to award a $10 billion JEDI cloud-computing project to rival Microsoft Corp after the Pentagon canceled the contract. Amazon.com had accused then-President Donald Trump, alleging that the former president exerted improper pressure on military officials to steer the contract away from…