Two Trump appointees join 6-3 decision to reject ‘dramatically revisionist’ attempt to define who gets to be a citizen