In 5-4 ruling, Supreme Court allows Trump plan to deny green cards to those who may need gov’t aid