Since the iPhone is encrypted, they need either a fingerprint (if you use one) to unlock your phone to access it, or they need a password. Courts have ruled (at least one) that they can make you give a fingerprint. They cannot force you legally to give a password.
Hmm.....