US President Donald Trump and Australian Prime Minster Anthony Albanese have signed a deal for critical minerals.