The raid had been pre-planned to test the game’s legality in Pennsylvania, according to court documents and multiple sources.