judge orders pastor to study islam