Que. court to rule on temporary smoking reprieve