Gateway building receives planning endorsement