York has a Local Plan for the first time in decades after councillors voted to approve it.