Judges should uphold their office... Meaning during their work hours assuming all paperwork is in order and the marriage is otherwise legal they should perform the legal marriage. On their off hours, they can make up their own minds.
churches should marry anyone who fulfills their "paperwork"... For example some require pre marriage counseling. If the church doesn't recognize SSM then no but that is a tricky problem.