Judge tells county to retrieve some COVID-19 relief payments