Judge: Government must pay back flood damage costs