Patent ruling favors Intel, Apple, HP over small firm