The Supreme Court has ruled that the Welsh Government's first law was within the Welsh Assembly's legislative competence, and can go ahead.
The outcome is entirely consistent with the general thrust of the extended powers given to the Welsh ministers, by the Government of Wales Act 2006.
The Local Government Byelaws Bill was passed by the assembly in July this year. But it was blocked from becoming law by the attorney general and referred to the court.
More top news
Cold, breezy and generally cloudy at first with further wintry outbreaks on the hills
All primary and secondary schools in Wales have been categorised in a new colour-coded system. Is your school green or red?
A yellow warning for snow and ice on Thursday night and Friday has been issued.