Twitter pushed back against the warrant but was eventually compelled to comply, unsealed court records show.