The Scottish government gave the project the green light despite a reporter recommending refusal.