Westinghouse reaches deal to tap $800M in loans during bankruptcy