After nearly 13 hours of debate, Argentina’s senate on Thursday approved a deal to pay its holdout creditors, removing the last legislative hurdle the measure faced, and ending a 15-year-long battle that had restricted the South American nation’s access to international credit markets.