Law bans protests at military funerals