A district court blocked Trump’s plans to freeze spending on Tuesday. That’s just the opening salvo in what could be a long court battle over presidential power.