It wasn’t Trump that brought it up, he just expanded the possibility Cruz might be challenged in a lawsuit over his natural born citizenship.
Trump just suggested that Cruz could get an opinion to settle the topic before he had to deal with law suits that have already started.