Border Patrol agents detained Barranco in June in Santa Ana, pinning him to the ground before placing him in a detention facility.
READ MORE | OC man forcibly detained by Border Patrol agents in Santa Ana, video shows
OC man forcibly detained by Border Patrol agents in Santa Ana, video shows
The judge ruled that Barranco is eligible for lawful status because he has three American sons serving in the military.
Barranco's attorney is now working to secure his permanent residency and a work permit.