Same-sex marriage remains illegal in Poland, and some local officials have said they will resist the change.