A one-time nasal spray has been approved by the Food and Drug Administration as a standalone treatment for depression.