FN:s säkerhetsråd har röstat för en resolution som stöder en marockansk plan för det omtvistade territoriet Västsahara.