The suspect in a deadly truck rampage was inspired by the Islamic State group's online videos and plotted his New York City attack for two months, renting a truck ahead of time to practice turning it, federal authorities said in a criminal complaint bringing terrorism charges against the Uzbek immigrant.