Lord Dyson, Master of the Rolls, said the legal challenges were to two "of the Government's most controversial measures" relating to state benefits.
The court could only intervene if the measures "were manifestly without reasonable foundation", the judge said.
He ruled that the test was not satisfied and both challenges must fail.
Representatives for two of the people with disabilities who lost their bid said they were "extremely disappointed" and "baffled" by the court's findings.
"We are currently considering whether an appeal to the Supreme Court is possible" said Ugo Hayter, from law firm Leigh Day.
More top news
HSBC has sacked employees who staged a mock Islamic State-style beheading during a team-building exercise.
Three men gored and 10 others hospitalised during first day of a week-long San Fermin festival in the northern Spanish city of Pamplona.
People travelling into the capital have been getting off a stop early to walk together in remembrance of the victims of the 7/7 bombings.