Contentious plans to change a former Inverness care home into a children’s nursery have been given the go-ahead.