Which Castillan ruler then consolidated control over Galicia?