Supreme Court allows parts of travel ban to take effect on Thursday