You can’t cast the copy if an effect prevents you from casting instants or sorceries, or from casting that particular instant or sorcery. It doesn’t matter whether your opponent can cast the card at this time; the only thing that matters is whether you can cast it.