Quebec Superior Court has ruled that the province's politicians will need to swear an oath to the King in order to sit at the provincial legislature.