A Thurston County judge ruled the Department of Children, Youth and Families broke a settlement agreement when it transferred 43 men over the age of 21 from Green Hill School in Chehalis to the Department of Corrections.