A&O wins water fight for Macquarie