Rookie Josh Rosen threw a 75-yard touchdown pass on the first play from scrimmage as the Arizona Cardinals defeated the San Francisco 49ers.