An Edinburgh’s hotel plans to secure its long-term future by adding a three-storey 42-bedroom extension have been approved.