Shareholders of Pattern Energy, which owns wind and solar projects in North America and Japan, will receive $26.75 per share, according to a statement announcing the deal, a discount of about 4% to the stock’s close on Friday.