Portugal leftist parties clinch historic deal, aim to topple government