Egypt's culture minister resigns after court ruling in copyright case