SECOND AMENDED AND RESTATED aGREEMENT OF LIMITED PARTNERSHIP OF Pattern Energy Group Holdings 2 LP Dated effective as of June 16, 2017