A court has dismissed a challenge by a Liberal Party member to a decision by prime minister Scott Morrison and two other members of the federal executive to endorse incumbents to contest seats in NSW at the upcoming election, a ruling that paves the way for the PM to name the date.