a federal judge has ruled against procter & gamble co. in a patent dispute with kimberly-clark corp. , defeating the consumer products giant 's bid for control of the $ 3 billion disposable-diaper market .