Man charged over Sydney officer's stabbing