We had to deal with the Schipol Airport congestion twice on our way to our Safari in Africa we had one night at the Airport Hilton in Amsterdam then a week in Amsterdam before we returned to the USA.
Schipol Airport had serious problems with understaffing earlier in the summer with many people not getting their luggage and/or missing flights. We managed well, but arrived at the airport four hours prior to departure. We made just fine, but it took us 2 1/2 hours both times just to go through checkin, security and immigration.
I don't recommend doing the train, especially if you have your ticket already.
Since you won't have to leave security, you should be fine with that connection time. Check for what terminal your flights arrive and depart. If you don't have to leave security and reenter, you should be fine.