U.S. stocks closed higher, following increased expectations the U.K. will stay in the EU.