Funds for two of the nation’s largest infrastructure projects, the Second Avenue subway and Hudson River tunnels, are being held up over President Trump’s order to investigate D.E.I. programs.