The House of Representatives has greenlighted some immigration bills, including farmworkers and "dreamers," who were brought to the U.S. illegally as minors.

The legislation was passed with Democrats in favor and Republicans opposing the immigration bills, according to a CNBC report.

A bipartisan immigration deal on immigration is on top of the list of U.S. President Joe Biden's administration. It has been complicated due to the recent border crisis.

The American Dream and Promise Act passed 228-197 votes, with nine Republicans joining all Democrats voting in favor of the bill, according to a New York Post report.

The bill would be advantageous for young migrants and refugees with Temporary Protected Status.

The other bill that the House passed was The Farm Workforce Modernization Act, which was okayed with 247-174. Thirty Republicans joined most Democrats and voted in favor of the bill. One Democrat voted in opposition.

READ MORE: Biden's Broad Immigration Reform Bill Lands in Congress: Here's What Would Change

Debate on The Bill

Meanwhile, several Republicans argued that the bills were poorly timed with the current migrant influx at the border.

House Minority Leader Kevin McCarthy said that the legislation ignores the current problem and worsens the situation.

McCarthy accused Biden of causing a surge in migration with his presidential campaign rhetoric and border policies he is eyeing to implement.

"During a press conference this morning, Speaker [Nancy] Pelosi had a sign up that said 'Home is here.' This is the wrong message at the wrong time," he was quoted in a report.

They also attacked the Dreamer bill, saying that the southwest border needs to be secured first before taking steps on immigration reforms, according to a Reuters report.

Meanwhile, around 1.8 million young immigrants or also called Dreamers, embarked a dangerous journey on their own, with hopes to escape the gang violence in Honduras, Guatemala, and El Salvador.

Many of these young migrants have spent their lives in the United States and have been to U.S. schools.

Meanwhile, Democratic Representative Pramila Jaypal said that she came from India to the United States alone at the age of 16.

Jaypal said that they should stop criminalizing immigrants.

On the other hand, Republican Rep. Chip Roy said that Democrats were doing nothing to address cartels who have hands on their border right now.

He added that now, they are pushing a measure that would prove to be a magnet to traffic more children inside the country.

The White House supported both the migration bills. However, they encouraged lawmakers to adopt broader reforms.

"I urge Congress to come together to find long term solutions to our entire immigration system so we can create a safe, orderly, and humane immigration system, tackle the root causes of migration and legalize the undocumented population in the United States," Biden was quoted in a report.

The Dreamers bill would help a separate group of migrants who originated from nations plagued by civil wars and natural disasters. It would also include those who were eligible for temporary protection in the U.S.

The Biden administration has also kept former President Barack Obama's Deferred Action for Childhood Arrivals program.

READ NEXT: Biden Administration Eyes Army Base to House Migrant Children

WATCH: House Democrats Pass Immigration Bill to Give 'Dreamers' Pathway to Citizenship -from Bloomberg Quicktake: Now