General Electric Co. is investing $24 million in India’s largest solar-power plant, drawn by what it called the technology’s “incredible potential” in the nation.