The Supreme Court voted 5-4 to uphold the travel ban, saying it is "squarely within" the president's authority.