The US acts to keep fuel flowing after its largest pipeline was hit by a ransomware cyber-attack.