Copyright law provides some exceptions that allow for certain uses of copyright-protected works in the classroom: see the page on copyright exceptions.
DSI CLEAR provides a copyright guide for instructors using others' works in their teaching. This can be useful regardless of whether any of the copyright exceptions apply.