A high-stakes court case tests the limits of presidential trade authority as tariff revenue surges and legal pressure builds.