Lapid says Jerusalem and Rabat would work together to counter ‘attempts to weaken Moroccan sovereignty’ in Western Sahara, welcomes Spain’s recognition of Moroccan control over contested territory