Karnataka to get legal opinion to take action against Adani Group