The decision is the latest setback for the president’s effort to levy taxes without input from Congress