Ariane 5 rocket puts satellites into orbit on second attempt