Teachers approve contracts in state's two largest districts