A $5.3 million apartment project in Perth’s north has been given the green light despite some community opposition over the loss of beach views.