Judge rules New York churches can reopen in line with businesses