The EU has passed a regulation that bans sale or renting of homes without energy upgrade