Bartlett reinstated as Premier, Labor to rule in minority