Trump’s rare loss at the high court could impact the president’s attempts to send the military into cities