After several objections from creditors, SunEdison has secured a deal to receive a $1.34 billion loan. These much needed funds were part of talks for four days. The money will help the firm maintain its global operations during the bankruptcy proceedings.