In a major case which gave the Anglican-Church of England (Episcopalian in America) church the right not to ordain a Gay man, the church has won the right to stand for its founding principles. That this could happen in a country which has recently legalized same-sex marriage is remarkable and a victory for the church's right to stick to its 2000 year old foundations.
Potential priests must be "chaste" to enter the training process, which is defined by the Anglican Church in this country as single and celibate or in a heterosexual marriage.
These are the core standards for ordination; What is not stated is the apparent allowance for a Gay or lesbian person to, after ordination, become married and continue as a priest.
The situation has not arisen but it would seem that such priests would be allowed. On the other hand, It would appear that not allowing same-sex married couples to be priests is legal, if the church so wished, under the court's ruling which "correctly identified the balance between individual human rights and the autonomous nature of the church in a way that ensures the freedom of religion".