Sheriff legally used inmate food funds for beach house