Judge issued warning for refusing to perform same-sex weddings