People will be able to claim compensation if they are disrupted during the national rail strike