Oil profits are being used for the purpose of buying back stocks in the oil companies, instead of developing alternatives.
To simplify this sentence, replace “for the purpose of” with “to”:
Oil profits are being used to buy back stocks in the oil companies, instead of developing alternatives.
To clarify it, change from passive voice to active voice:
Oil companies are using their huge profits to buy back their own stock, instead of investing in renewable energy alternatives.