Judges are using brain science to help babies caught in the court system