City stave off Sydney FC in A-League