A lawsuit filed by a range of educational and city groups claims US president Donald Trump does not have the power to cancel diversity and equity programs.