Judge sets path for voters to decide renewable energy ordinance