US: Judge orders man to get vaccinated to see child