EU may take legal action against UK over new Brexit law - sources