> The state should avoid giving a REAL ID to anyine who isn't at least a permanent resident of the US
REAL ID or certain alternative federal ID is required to enter federal buildings and domestic flights. The only immigrants who are issued federal ID that is usable in place of real ID are permanent residents. Ergo, your plan would have states effectively ban legally-present non-citizens who are not permanent residents from federal buildings and domestic flights. This is a bad idea; and, absent a specific federal mandate, probably unconstitutional for states to do.
States could, as some do, issue restricted term REAL IDs to aliens who are not permanent residents, but REAL ID isn’t intended as proof-of-status but an identity document, so while that's doable, it doesn't seem to be particularly necessary.
(Yes, foreign passports are also permissible “federal ID” in place of REAL ID, but there are legally present aliens who may not have passports—particularly refugees—and who are also not issued federal ID by the US government because, except for permanent resident aliens, the US has generally declined to have national ID and given ID functions to the state; REAL ID nationalized standards for some uses instead of nationalizing the ID itself.)