The Short Version
Recordings, transcripts, and major news reports show that Trump did make this statement. The quoted language is directly documented. However, the CHIPS Act itself contains no such transgender requirement, so the statement was made even though its policy description was false.