Drivers ratified a new contract after nearly two months on strike, with buses set to return to normal service.