Having immigration enforcement is legitimate and not illegal. Hosting an app related to legitimate government function in an app store is so far removed from any possible element of a real crime...
The app... I don't at all understand what the role of the app is, so I really can't comment on that aspect of the situation.