A drug to treat malaria - the first such pill to get approval in 60 years - has been given the green light by authorities in the United States.