Chief legal ombudsman resigns over expenses row