It is ironic that a program that was enhanced by Mr Obama was what ultimately tripped up this young man.  He probably just needs a better lawyer.
"REAL ID allows compliant states to issue driver’s licenses and identification cards where the identity of the applicant cannot be assured or for whom lawful presence is not determined.  In fact, some states currently issue such noncompliant cards to undocumented individuals. These cards must clearly state on their face (and in the machine readable zone) that it is not acceptable for official purposes and must use a unique design or color to differentiate them from compliant cards.  DHS cautions against assuming that possession of a noncompliant card indicates the holder is an undocumented individual, given that several states issue noncompliant licenses for reasons unrelated to lawful presence."

https://www.dhs.gov/real-id-public-faqs