Rubio called Iran's actions illegal in testimony to the Senate Foreign Relations Committee.