To find a experienced criminal lawyer represent you and go to court with you. The total charge should be between 1000-2000. And the same time let other people pursuade your roomate to change his mind.
If you won't be in jail and you cases was dismissed later on, your green card should be OK.
If you won't be in jail and you cases was dismissed later on, your green card should be OK.