Councils drop proposed legal action over asylum seeker plans