Republicans largely supported the decision, while Democrats mostly opposed it — but divisions appeared in both parties.