Any court having jurisdiction of a civil action arising under this title may, subject to the provisions of
section 1498 of title 28, grant temporary and final injunctions on such terms as it may deem reasonable to prevent or restrain infringement of a copyright.