State agrees to foster care reforms in Miami-Dade and Monroe counties