Federal judge hammers Texas officials over failures to improve foster care system