The Supreme Court finds the WA government broke its own laws by locking a boy in his cell for up to 24 hours a day.