Councillors in Midlothian have unanimously approved plans for a new £120 million secondary school despite concerns about a road running through the site and claims it would have unisex toilets.