Court to decide Trump’s room for maneuvering in economic policy, future of billions in tariff revenue