An appeals court just blasted a judge who tried to stop same-sex marriages in Puerto Rico