Trump as President could do whatever the heck he wanted with those “secret” documents. If he chose to show them to somebody, then they implicitly became unclassified. When he said they were still secret, they became secret again. Pretty simple.
Very simple.
Look at the consequences of their having arrested a former president and current front runner opposition candidate