A judge has urged those responsible for a church in Blackpool to heed the biblical commandment “love thy neighbour” following a row over toilets.