The resolution reflects growing concern over the Iran conflict, but legal experts say its ability to constrain the White House is unclear