US President Donald Trump and Republican leaders pulled legislation to overhaul the US healthcare system.