Yes they can. When was the last time that happened though. We should have impeached this president by now.
The SC’s role is to uphold/clarify laws that congress create. So, if they would say Illegal Aliens could stay because they didn’t break the US Laws would be an impeachable offense. Now, whether that would happen is a different story