A federal judge sided with the Association of American Publishers on Monday, finding a recently enacted Maryland library e-book law conflicts with federal copyright laws.