Parliament votes to recognise religious same-sex partnerships