President Donald Trump's administration agreed to permit the sale and possession of devices that let gun enthusiasts convert semiautomatic rifles into weapons that can shoot as fast as machine guns.