A Houston federal judge invalidated a patent in an infringement case brought by a company that tried to stop a competitor from launching a tool used in oil and gas drilling.