Brazil signs ‘historic’ power deal