Iran's parliament rules president's ministry move broke law