Some people took a hostile attitude toward illegal immigrants.

Literal

Illegal foreigners [toward-に対して] hostile attitude [object-を] take person [also-も] existed.

不法外国人 = 'illegal foreigners.' ~に対して = 'toward.' 敵対的な態度を取る = 'to take a hostile attitude.' ~人もいた = 'there were also people who...'