EU commissioner rejects Polish church bar on gay teachers