A Pennsylvania judge ruled Tuesday that the state's system of funding public schools falls woefully short and violates students' constitutional rights, siding with poorer districts in a lawsuit launched nearly a decade ago in pursuit of billions of dollars in additional annual aid.