(CNN) European Union interior ministers on Tuesday voted in favor of a quota system to relocate 120,000 asylum-seekers in Europe, an EU source told CNN's Nic Robertson.
Now the plan goes to EU presidents and prime ministers, who are scheduled to meet in Brussels, Belgium, on Wednesday to consider it.
In the interior ministers' vote, four countries -- Romania, the Czech Republic, Slovakia and Hungary -- opposed quotas, but they will be obligated to take in asylum-seekers, the source said. Finland abstained.
Eastern European countries in particular have shown resistance to committing to quotas, as reflected in those countries that voted against the idea at Tuesday's meeting in Brussels.
They'll have to comply with the resettlement plan even if they voted against it, the EU source said.
"The mechanisms of resettlement are obligatory," the source said.
Wave of migrants in Croatia
The Balkan nation of Croatia grappled with an increasing wave of migrants on Tuesday.
Migrants wait in Tovarnik, Croatia, for transport north on Saturday.
Croatian officials said that 2,400 migrants had entered the country in just the past 12 hours. Nearly 35,000 people have already arrived in the country, which has a population of only 4.4 million.
Europe as a whole has struggled in recent weeks to fashion a coherent response to a historic wave of people fleeing conflict and destruction in the Middle East and North Africa -- primarily from Syria, where a civil war has raged for more than four years, leaving cities in ruins.
So far, 34,900 migrants have been allowed into Croatia, the Ministry of Interior said in a statement. But the migrants are moving through the country to other destinations fairly efficiently, Croatia said, with 5,100 transported out of the country on Monday and a further 1,160 by Tuesday morning.
Currently 1,630 people are at a camp in Opatovac, in eastern Croatia near the border with Serbia, where video feeds showed them waiting for transportation and lined up for aid.
A flood of migrants on a trail across Europe -- with no end in sight
German official: Islamists may recruit among migrants
The historic migration has fueled fears that the population of Europe -- and the culture of the continent -- will be changed beyond recognition. It is a prospect some in Europe fear.
Europe's migration crisis in 25 photos
A woman cries
after being rescued in the Mediterranean Sea about 15 miles north of Sabratha, Libya, on July 25, 2017. More than 6,600 migrants and refugees entered Europe by sea in January 2018,
according to the UN migration agency, and more than 240 people died on the Mediterranean Sea during that month.
Refugees and migrants get off a fishing boat at the Greek island of Lesbos after crossing the Aegean Sea from Turkey in October 2015.
Migrants step over dead bodies while being rescued in the Mediterranean Sea, off the coast of Libya in October 2016. Agence France-Presse photographer Aris Messinis
was on a Spanish rescue boat that encountered several crowded migrant boats. Messinis said the rescuers counted 29 dead bodies -- 10 men and 19 women, all between 20 and 30 years old. "I've (seen) in my career a lot of death," he said. "I cover war zones, conflict and everything. I see a lot of death and suffering, but this is something different. Completely different."
Authorities stand near the body of 2-year-old Alan Kurdi on the shore of Bodrum, Turkey, in September 2015. Alan, his brother and their mother
drowned while fleeing Syria. This photo was shared around the world, often with a Turkish hashtag that means "Flotsam of Humanity."
Migrants board a train at Keleti station in Budapest, Hungary, after the station was reopened in September 2015.
Children cry as migrants in Greece try to break through a police cordon to cross into Macedonia in August 2015. Thousands of migrants -- most of them fleeing Syria's bitter conflict -- were stranded in a
no-man's land on the border.
The Kusadasi Ilgun, a sunken 20-foot boat, lies in waters off the Greek island of Samos in November 2016.
Migrants bathe outside near a makeshift shelter in an abandoned warehouse in Subotica, Serbia, in January 2017.
A police officer in Calais, France, tries to prevent migrants from heading for the Channel Tunnel to England in June 2015.
A migrant walks past a burning shack in the southern part of the "Jungle" migrant camp in Calais, France, in March 2016. Part of the camp was being demolished -- and the inhabitants relocated -- in response to unsanitary conditions at the site.
Migrants stumble as they cross a river north of Idomeni, Greece, attempting to reach Macedonia on a route that would bypass the border-control fence in March 2016.
In September 2015, an excavator dumps life vests that were previously used by migrants on the Greek island of Lesbos.
The Turkish coast guard helps refugees near Aydin, Turkey, after their boat toppled en route to Greece in January 2016.
A woman sits with children around a fire at the northern Greek border point of Idomeni in March 2016.
A column of migrants moves along a path between farm fields in Rigonce, Slovenia, in October 2015.
A ship crowded with migrants
flips onto its side in May 2016 as an Italian navy ship approaches off the coast of Libya. Passengers had rushed to the port side, a shift in weight that proved too much. Five people died and more than 500 were rescued.
Refugees break through a barbed-wire fence on the Greece-Macedonia border in February 2016, as tensions boiled over regarding new travel restrictions into Europe.
Policemen try to disperse hundreds of migrants by spraying them with fire extinguishers during a registration procedure in Kos, Greece, in August 2015.
A member of the humanitarian organization Sea-Watch holds a migrant baby who drowned following the capsizing of a boat off Libya in May 2016.
A migrant in Gevgelija, Macedonia, tries to sneak onto a train bound for Serbia in August 2015.
Migrants, most of them from Eritrea, jump into the Mediterranean from a crowded wooden boat during a rescue operation about 13 miles north of Sabratha, Libya, in August 2016.
Refugees rescued off the Libyan coast get their first sight of Sardinia as they sail in the Mediterranean Sea toward Cagliari, Italy, in September 2015.
Local residents and rescue workers help migrants from the sea after a boat carrying them sank off the island of Rhodes, Greece, in April 2015.
Investigators in Burgenland, Austria, inspect an abandoned truck that contained the bodies of refugees who died of suffocation in August 2015. The 71 victims -- most likely
fleeing war-ravaged Syria -- were 60 men, eight women and three children.
On Tuesday, Germany's top domestic security chief said that hardline Islamists in the country might recruit supporters among new refugees and migrants -- though many of those migrants are, in fact, fleeing hardline Islamists in the form of the terrorist group ISIS.
"We are watching Salafists appear as benefactors and helpers to contact refugees directly with the aim of inviting them into mosques," Hans-Georg Maassen, head of the Federal Office of Protection of the Constitution, said in an interview published in the Rheinische Post. Salafists are ultraconservative Muslims.
"They want to recruit refugees for their affairs," Maassen said.
More than 430,000 migrants have come to Europe by sea so far this year, double the number that arrived during all of 2014, according to the International Organization for Migration.
Are countries obligated to take in refugees?
Journalist Ossama Elshamy contributed to this report.