A closed private Oxford school will continue to lease out a building until 2032.