NEW YORK — Twitter on Friday agreed to hand over about three months’ worth of tweets to a judge overseeing the criminal trial of an Occupy Wall Street protester, a case that has become a closely watched fight over how much access law enforcement agencies should have to material posted on social networks.…