The US Supreme Court left intact the federal ban on bump stocks, the attachments that can make a semiautomatic rifle fire like a machine gun, turning away arguments from advocates including the National Rifle Association.