Court backs Surrey's transition to municipal police force