US Senate reaches power-sharing agreement