Spain's Socialist Party has struck a deal with a fringe Catalan separatist party to grant an amnesty for potentially thousands of people involved in the region's failed secession bid in exchange for its key backing of acting Spanish Prime Minister Pedro Sanchez in forming a new government.