The UK government has dropped its demands to create a backdoor into Apple's encryption, according to the US intelligence chief Tulsi Gabbard.