A council in England is threatening to sue four Welsh councils after it made a number of investments in solar farms that led to it becoming bankrupt.