The dispute raised separation of powers concerns arising from the president’s ability to remove members of the Consumer Product Safety Commission.