The Justice Department dropped the fight over President Donald Trump's executive orders targeting firms he disliked.