Hint: Use the Identity theorem from complex analysis. If they are equal on an open set (in fact on any set with limit points), then they are equal everywhere.
Think of them as complex functions. $$\prod_{n=0} ^{\infty} \left(1 - \frac{z^2}{(n+1/2)^2}\right )$$ gives you an entire function since $\sum_{n=0}^{\infty} \frac{1}{ (n+1/2)^2}$ coverges.
You have shown that for all $z \not \in \mathbb N$, the product equals to an entire function $\cos z$. Therefore, they are equal for all $z\in \mathbb C$.
Edit: To avoid complex analysis, note that $\prod _{n=0} ^{\infty}\left( 1 - \frac{x^2} {(n+1/2)^2} \right)$ is a continuous function, since $\sum_{n=0}^{\infty} \frac{1}{ (n+1/2)^2}$ converges. If you have proven the result for all $x \not \in \mathbb N$, then the result simply extends by continuity.