His administration will likely run into legal trouble as it implements policies on federal identity documents and housing in federal prisons.