Lithuanian police given right to take migrants into custody