Polish government says step aimed to check migrants more thoroughly amid public concerns over immigration.